<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link href="$!webPath/resources/style/system/manage/$!{config.websiteCss}/template.css"  rel="stylesheet" type="text/css"/>
<link  href="$!webPath/resources/style/common/css/jquery-ui-1.8.22.custom.css" type=text/css rel=stylesheet>
<script src="$!webPath/resources/js/jquery-1.6.2.js"></script>
<script src="$!webPath/resources/js/jquery.validate.min.js"></script>
<script src="$!webPath/resources/js/jquery.shop.common.js"></script>
<script src="$!webPath/resources/js/jquery.poshytip.min.js"></script>
<script src="$!webPath/resources/js/jquery-ui-1.8.21.js"></script>
<script src="$!webPath/resources/js/jquery.zh.cn.js"></script>
<script>
jQuery(document).ready(function(){
  jQuery('#beginTime').datepicker({
	  dateFormat:"yy-mm-dd",
	  changeMonth: true,
	  changeYear: true
  });
  jQuery('#endTime').datepicker({
	  dateFormat:"yy-mm-dd",
	  changeMonth: true,
	  changeYear: true
  });
  //
});
</script>
</head>
<body>

<div class="cont">
  <h1 class="seth1">预存款管理</h1>
  <div class="settab"><span class="tab-one"></span> <span class="tabs"> <a href="$!webPath/admin/predeposit_list.htm">充值管理</a>|<a href="$!webPath/admin/predeposit_cash.htm" class="this">提现管理</a>|<a href="$!webPath/admin/predeposit_modify.htm">人工操作</a></span> <span class="tab-two"></span></div>
  <form action="$!webPath/admin/predeposit_cash.htm" method="post" id="queryForm" >
  <div class="orders">
    <ul>
      <li> <span>支付方式</span><span class="ordersel">
        <select name="cash_payment" id="cash_payment">
          <option value="">支付方式</option>
          <option value="alipay">支付宝</option>
          <option value="chinabank">网银在线</option>
          <option value="tenpay">财付通</option>
          <option value="bill">快钱</option>
          <option value="outline">线下支付</option>
        </select>
      </span>支付状态<span>
      <select name="cash_pay_status" id="cash_pay_status">
        <option value="">支付状态</option>
        <option value="0">等待支付</option>
        <option value="1">等待审核</option>
        <option value="2">支付完成</option>
      </select>
      </span>提现状态<span>
        <select name="cash_status" id="cash_status">
          <option value="">提现状态</option>
          <option value="0">未完成</option>
          <option value="1">已完成</option>
          <option value="-1">已关闭</option>
        </select>
        </span><span>会员名</span><span class="order_input size2">
        <input name="cash_userName" type="text" id="cash_userName" />
        </span></li>
      <li> <span>申请时间</span><span class="order_input size2">
        <input name="beginTime" type="text" id="beginTime"  readonly="readonly"/>
        </span><span>—</span><span class="order_input size2">
        <input name="endTime" type="text" id="endTime" readonly="readonly" />
        </span> <span>汇款人</span><span class="order_input size2">
        <input name="cash_remittance_user" type="text" id="cash_remittance_user" />
        </span><span>汇款银行</span><span class="order_input size2">
        <input name="cash_remittance_bank" type="text" id="cash_remittance_bank" />
        </span> <span class="btn_search">
        <input name="" type="button"  value="搜索" style="cursor:pointer;" onclick="query();"/>
      </span> </li>
    </ul>
  </div>
  </form>
  <form action="$!webPath/admin/predeposit_cash.htm" method="post" id="ListForm" >
    <div class="allshop_table">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr style="background: #if($!config.websiteCss=='blue') #2A7AD2 #end 
      #if($!config.websiteCss=='black')#333 #end; height:30px; color:#FFF">
        <td width="117">提现编号</td>
        <td width="107">会员名称</td>
        <td width="85">提交时间</td>
        <td align="center" width="140">支付方式</td>
        <td  align="center" width="98">提现金额（元）</td>
        <td width="77" align="center">支付状态</td>
        <td width="77" align="center">提现状态</td>
        <td width="120" align="center" >操作</td>
      </tr>
      #foreach($obj in $objs)
      <tr>
        <td>$!obj.cash_sn</td>
        <td>$!obj.cash_user.userName</td>
        <td>$!CommUtil.formatShortDate($!obj.addTime)</td>
        #if($!obj.cash_payment=="outline")
          #set($cash_payment="线下支付")
        #end
        #if($!obj.cash_payment=="alipay")
          #set($cash_payment="支付宝")
        #end
        #if($!obj.cash_payment=="tenpay")
          #set($cash_payment="财付通")
        #end
        #if($!obj.cash_payment=="bill")
          #set($cash_payment="快钱")
        #end
        #if($!obj.cash_payment=="chinabank")
          #set($cash_payment="网银在线")
        #end
        <td align="center">$!cash_payment</td>
        <td align="center">$!obj.cash_amount</td>
        #if($!obj.cash_pay_status==0)
          #set($cash_pay_status="等待支付")
        #end  
        #if($!obj.cash_pay_status==1)
          #set($cash_pay_status="等待审核")
        #end       
        #if($!obj.cash_pay_status==2)
          #set($cash_pay_status="支付完成")
        #end  
        <td align="center">$!cash_pay_status</td>  
        #if($!obj.cash_status==-1)
          #set($cash_status="已关闭")
        #end
        #if($!obj.cash_status==0)
          #set($cash_status="未完成")
        #end
        #if($!obj.cash_status==1)
          #set($cash_status="已完成")
        #end
        <td align="center">$!cash_status</td>
        <td align="center" class="blue xiahua">#if($!obj.cash_status==0)<a href="$!webPath/admin/predeposit_cash_edit.htm?id=$!obj.id&currentPage=$!currentPage">编辑</a>#end <a href="$!webPath/admin/predeposit_cash_view.htm?id=$!obj.id">查看</a></td>
      </tr>
     #end
    </table>
  </div>
  <div class="fenye">
   <span id="queryCondition" style="display:none">
	#foreach($sm in $sms)
	<input name="$!sm.key" id="$!sm.key" type="hidden" value="$!sm.value"/>
	 #end
  </span>
    <input name="q_cash_userName" type="hidden" id="q_cash_userName" value="$!q_cash_userName" />
    <input name="q_endTime" type="hidden" id="q_endTime" value="$!q_endTime" />
    <input name="q_beginTime" type="hidden" id="q_beginTime" value="$!q_beginTime" />
<input name="currentPage" type="hidden" id="currentPage" value="$!currentPage" />
    $!gotoPageFormHTML</div>
  </form>
</div>
</body>
</html>
